﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Texfina.Core.Data;
using System.Data;
using Texfina.Entity.Co;

namespace Texfina.DOQry.Co
{
    public class DImportacion
    {

        public static DataSet GetList(EImportacion imp)
        {

            DBAccess db = new DBAccess();

            db.AddParameter("@idImporta", imp.Id_importa);

            db.AddParameter("@dsImporta", imp.Ds_importa);

            return db.ExecuteDataSet("MG_Importacion_qry01");
        }

        public static IDataReader GetList02(EImportacion imp)
        {

            DBAccess db = new DBAccess();

            db.AddParameter("@idImporta", imp.Id_importa);

            db.AddParameter("@dsImporta", imp.Ds_importa);

            return db.ExecuteReader("MG_Importacion_qry01");
        }
    }
}
